export function DateView({ date }: { date?: Date | null }) {
  const year = date ? date.getMonth() + 1 : null;
  const month = date ? date.getDate() : null;
  return (
    <div style={{ whiteSpace: 'nowrap' }}>
      <span style={{ display: 'inline-block', width: '1.1em' }}>{year}</span>
      <span>月</span>
      <span style={{ display: 'inline-block', width: '1.1em' }}>{month}</span>
      <span>日</span>
    </div>
  );
}
